﻿<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    <link rel='stylesheet' id='style-css' href="~/css/style.css" type='text/css' media='all' />
    <link rel='stylesheet' id='lmlblog-css' href='~/css/lmlblog.css' type='text/css' media='all' />
    <link rel='stylesheet' id='all-css' href='~/css/all.css' type='text/css' media='all' />
    <link rel='stylesheet' id='all-css' href='~/css/MicroblogStyle.css' type='text/css' media='all' />
    <link href="~/css/MicroblogStyles.css" rel="stylesheet" />
    <script type='text/javascript' src='~/js/jquery.min.js'></script>
    <script type='text/javascript' src='~/js/ueditor.all.min.js'></script>
    <script src="~/js/jquery.unobtrusive-ajax.min.js"></script>
</head>
<body>
    <!-- 导航栏 -->
    <div class="menu-bar">
        <div class="head_content">
            <h1 class="m-logo"><a href="/Home/Index"></a></h1>
            <div id="nav" class="menu-menu-1-container">
                <ul id="menu-menu-1" class="menu" style="color: black;">
                    <li class="menu-item menu-item-type-custom"><a href="/Home/Index"><i class="fa fa-home"></i> 微博首页</a></li>
                    <li class="menu-item menu-item-type-taxonomy menu-item-object-category">
                        <a href="/My_Home/My_Home/@Session["UserID"]"><i class="fa fa-comments-o"></i> 我的微博</a>
                    </li>                
                    <div class="head_user_info">
                        @if (Session["name"] != null)
                        {
                            <li id="head_login">@Session["name"]</li>
                            @Html.ActionLink("退出", "Layout", "Home")
                        }
                        else
                        {
                            <a href="/Home/Login">
                                <li id="head_login">登录</li>
                                <span class="head_login_middle">or</span>
                                <li id="head_reg">注册</li>
                            </a>
                        }

                    </div>
                </ul>
            </div>
            <!-- 导航栏结束 -->
        </div>
    </div>

    <div>
        @RenderBody()       
    </div>

    <!-- 底部 -->
    <div style="clear:both"></div>
    <div class="footer">
        <div class="footer_b_foot">
            <div class="footer_b_top">
            </div>
            <div class="footer_b_bottom">Design by 2020卓越项目项目项目项目 悠悠微博官博。内容源于网络搜集,仅学习、分享交流。</div>
        </div>
    </div>
    <!-- 返回顶部 -->
    <a id="totop" class="cd-top" ></a>
    <script type="text/javascript">
        $(function () {
            //首先将#back-to-top隐藏
            $("#totop").hide();

            //当滚动条的位置处于距顶部100像素以下时，跳转链接出现，否则消失
            $(function () {

                $(window).scroll(function () {
                    if ($(window).scrollTop() > 100) {
                        $("#totop").fadeIn();
                    } else {
                        $("#totop").fadeOut();
                    }
                });

                //当点击跳转链接后，回到页面顶部位置
                $("#totop").click(function () {
                    $('body,html').animate({ scrollTop: 0 }, 500);
                    return false;
                });

            });
        });

    </script>


</body>
</html>
